package cn.iocoder.yudao.module.erp.controller.admin.contractpaymentplan.vo.contractpaymentplandetail;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 合同付款计划明细新增/修改 Request VO")
@Data
public class ContractPaymentPlanDetailSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24422")
    private Long id;

    @Schema(description = "关联付款计划主表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2266")
    private Long paymentPlanId;

    @Schema(description = "付款计划编号")
    private String planNo;

    @Schema(description = "付款期数")
    private String period;

    @Schema(description = "计划付款日期")
    private LocalDateTime planDate;

    @Schema(description = "付款类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "DOWN_PAYMENT")
    @NotEmpty(message = "付款类型不能为空")
    private String paymentType;

    @Schema(description = "计划付款比例(%)")
    private Integer planPaymentRatio;

    @Schema(description = "计划付款金额")
    private BigDecimal planPaymentAmount;

    @Schema(description = "实际付款状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "实际付款状态不能为空")
    private String actualPaymentStatus;

    @Schema(description = "实际付款金额")
    private BigDecimal actualAmount;

    @Schema(description = "实际付款日期")
    private LocalDateTime actualDate;

}